/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wangxin
 * Date: 2024-12-21
 * Time: 17:19
 */
public class Test {
    public static void main(String[] args) {
        MyBitSet myBitSet = new MyBitSet(18);
        int[] array = {1,2,3,10,4,18,13};
        for (int i = 0; i < array.length;i++){
            myBitSet.set(array[i]);
        }
        for(int i = 0;i < myBitSet.elem.length;i++){
            for (int j = 0;j < 8;j++){
                if((myBitSet.elem[i] &(1 << j))!= 0){
                    System.out.println(8*i + j);
                }
            }

        }
//        System.out.println(myBitSet.getUserSize());
//        System.out.println(myBitSet.get(4));
//        myBitSet.reSet(4);
//        System.out.println(myBitSet.get(4));
//        System.out.println(myBitSet.getUserSize());
    }
}
